package cn.sirun.com.fca.account.loader;

import com.tencent.cloud.iov.kernel.model.BaseResponse;

import cn.sirun.com.fca.account.model.bind.PinSetParamResponse;
import cn.sirun.com.fca.account.model.bind.PinSetParamsRequest;
import cn.sirun.com.fca.account.model.bind.VerifyPinRequest;
import cn.sirun.com.fca.account.model.bind.VerifyPinResponse;
import cn.sirun.com.fca.account.repo.bind.BindRepository;
import cn.sirun.com.fca.account.repo.pin.PinRepository;
import io.reactivex.Observable;
import io.reactivex.schedulers.Schedulers;

public class InputOldPinFlowLoader extends AccountFlowLoader {

    public Observable<BaseResponse<PinSetParamResponse>> getUpdatePinSetParams(PinSetParamsRequest request) {
        return PinRepository.getInstance().getUpdatePinSetParams(request)
                .subscribeOn(Schedulers.io());
    }

    public Observable<BaseResponse<VerifyPinResponse>> verifyPin(VerifyPinRequest request) {
        return PinRepository.getInstance().verifyPin(request)
                .subscribeOn(Schedulers.io());
    }

}
